import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/common.less'
import { Button,Icon,Tabbar, TabbarItem,NavBar, Field,Toast ,NoticeBar, Swipe, SwipeItem,Lazyload,Search,ActionSheet,Uploader,Form,Dialog } from 'vant'

Vue.use(Button)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use( Field)
Vue.use( Toast )
Vue.use( NoticeBar)

Vue.use( Swipe )
Vue.use( SwipeItem )
Vue.use( Lazyload )
Vue.use( Search )
Vue.use( ActionSheet)
Vue.use( Uploader)
Vue.use( Form)
Vue.use( Dialog)


Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  // beforeCreate() {
	// 	Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
	// },
}).$mount('#app')
